package com.lin.string;

public class StringTest {
    public static void main(String[] args) {
        String s = "heima";
        //System.out.println(s);
        change(s);
        System.out.println(s);
        System.out.println("---------------------");
        StringBuffer sb = new StringBuffer();
        sb.append("heima");
        //System.out.println(sb);
        change(sb);
        System.out.println(sb);
    }

    public static void change(String s) {
        s += "itcast";
    }

    public static void change(StringBuffer sb) {
        sb.append("itcast");
    }
}
